<template>
	<view>
		<view>
			 <swiper class="box" :indicator-dots="true" :autoplay="true" :interval="3000" :duration="500">
				<swiper-item class="banner" v-for="(item,index) in picture" :key="index">
					<image class="png" :src="item"></image>
				</swiper-item>
			</swiper>
		</view>
		<view class="btns">
			<button class="work" @click="seemore">作业工单</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				picture:[
					"../../../static/kyhslogo.png",
					"../../../static/logo.png"
				],
				
			}
		},
		methods: {
			seemore(){
				uni.navigateTo({
					url:"/pages/alllist/alllist"
				})
			}
			
			
		}
	}
</script>

<style>
	.box{
		display: flex;
		width: 100%;
		height: 260px;
		/* padding: 10px; */
		justify-content: center;
		align-items: center;
		border-radius: 5px;
		overflow: hidden;
	},
	.banner{
		width: 100%;
		height: 260rpx;
	},
	.png{
		align-self: center;
		height:250px;
		width: 100%;
	},
	.work{
		width: 100%;
		height: 80px;
		padding: 5px;
		font-size: 30rpx;
		left: 0%;
		background-color: skyblue;
		color: black;
	}
</style>
